<%-- 
    Document   : chuyenban
    Created on : Dec 23, 2011, 3:06:35 PM
    Author     : VIC
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="Beans.*,java.util.Vector,Models.*"%>
<%
    if (session.getAttribute("nv") == null) {
                response.sendRedirect("../index.jsp");
            }
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;user-scalable=0;" />
        <title>i-Order</title>
        <meta http-equiv="Content-Language" content="vi-vn" />
        <meta name="description" content="i-Order System " />
        <meta name="author" content="Quang Tan Nghia - Nguyen Thi Hoa" />
        <script type="text/javascript" src="../js/jquery-1.5.1.min.js"></script>
        <script type="text/javascript" src="../js/jquery-ui-1.8.16.custom.min.js"></script>
        <script type="text/javascript" src="../js/jquery.alerts.js"></script>
        <script type="text/javascript" src="../js/ajax.js"></script>
         <script type="text/javascript" src="../js/waiter.js"></script>
        <script type="text/javascript" src="../js/msg.js"></script>
        <style type="text/css">
           select { visibility: visible; -webkit-appearance: menulist-text;}
        </style>
    </head>
     <%
                int langid = (Integer) session.getAttribute("langid"); // ngôn ngữ hiện tại
                String dsts = " 'area', 'table', 'yousure' "; // chuỗi chứa các mã tham số của trang này.
                ThamSoHT[] mdsts = ThamSoHT_Model.DSThamSo(dsts, langid); // mảng chứa các tham số của trang này.
                String area = mdsts[0].getTenTS();
                String table = mdsts[1].getTenTS();
                String sure = mdsts[2].getTenTS();
    %>
    <body onload="window.scrollTo(0, 1);">
         <div id="title">
            <a class="tleft" href="waiter.jsp">
                    <img src="../images/back.png">
             </a>
            iOrder
            <a href="../DangNhap_Controller?action=logout" class="tright">
                    <img src="../images/logout.png">
            </a>
         </div>
        <div class="cform">
                <form name="chuyenban">
                        <p>
                            <label><%=area %> : </label>
                            <input onclick="LoadKhuVuc('cb_matukv','cb_tentukv');" onkeydown="ClearValue('cb_matukv');" onkeyup="ClearValue('cb_matukv');" class="text-input" type="text"  id="cb_tentukv" />
                            <input type="hidden" id="cb_matukv" />
                        </p>
                        <p>
                            <label><%=table %> :   </label>
                            <input onclick="LoadBan('update','cb_matuban','cb_tentuban','cb_matukv');" onkeydown="ClearValue('cb_matuban');" onkeyup="ClearValue('cb_matuban');" class="text-input"  type="text" id="cb_tentuban" />
                            <input type="hidden" id="cb_matuban"/>
                        </p>
                        <p>
                            <label><%=area %> : </label>
                            <input onclick="LoadKhuVuc('cb_madenkv','cb_tendenkv');" onkeydown="ClearValue('cb_madenkv');" onkeyup="ClearValue('cb_madenkv');" class="text-input" type="text"  id="cb_tendenkv" />
                            <input type="hidden" id="cb_madenkv"/>
                        </p>
                        <p>
                            <label><%=table %> :   </label>
                            <input onclick="LoadBan('free','cb_madenban','cb_tendenban','cb_madenkv');" onkeydown="ClearValue('cb_madenban');" onkeyup="ClearValue('cb_madenban');" class="text-input"  type="text" id="cb_tendenban" />
                            <input type="hidden"  id="cb_madenban"/>
                        </p>
                        <p>
                            <input style="width: 20%; margin-left: 10%;" onclick="HoanTatChuyenBan('<%=sure %>');" type="button" value="Hoàn tất"/>
                            <input style="width: 20%; margin-left: 10%" type="reset" value="Hủy bỏ"/>
                        </p>
                </form>
        </div>
    </body>
</html>
